package com.questetra.OAuth.apps.Twitter
{
	import com.questetra.OAuth.apps.Twitter.parser.TwitterStatus;
	
	import flash.events.Event;

	public class TwitterEvent extends Event
	{
		
		public static const XML_PARCE_ERROR:String = "xml_parce_error";
		public static const STATUS_UPDATE:String = "status_update";
		public static const ON_HOME_TIMELINE:String = "on_home_timeline";
		public static const ON_MENTIONS:String = "on_mentions";
		public static const ON_SEARCH:String = "on_search";
		
		public var data:String;
		public var xml:XML;
		public var status:TwitterStatus;
		public var timeline:Array;
		
		public function TwitterEvent(
		  type:String,
		  data:String = null,
		  xml:XML = null,
		  status:TwitterStatus=null,
		  timeline:Array=null,
		  bubbles:Boolean=false,
		  cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			this.data = data;
			this.xml = xml;
			this.status = status;
			this.timeline = timeline;
		}
		
	}
}